<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>用户列表</title>
</head>
<body>
<table border="1">
	<tr>
		<th>帐号</th>
		<th>密码</th>
		<th>年龄</th>
		<th>操作</th>
	</tr>
	<tr th:each="user : ${users}">
		<td th:text="${user.username}"></td>
		<td th:text="${user.password}"></td>
		<td th:text="${user.age}"></td>
		<td><a th:href="@{/addUser}">添加</a>|
		<a th:href="@{/editUser(id=${user.id})}">修改</a>|
		<a th:href="@{/delUser(id=${user.id})}">删除</a></td>
	</tr>
</table>
</body>
</html>